package io.renren.controller;

import io.config.dbconnect.InterBaseConnect;
import io.renren.entity.SysUserEntity;
import io.renren.service.PaperService;
import io.renren.service.SysUserRoleService;
import io.renren.service.SysUserService;
import io.renren.utils.PageUtils;
import io.renren.utils.R;
import io.renren.utils.ShiroUtils;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.apache.shiro.crypto.hash.Sha256Hash;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 系统用户
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2016年10月31日 上午10:40:10
 */
@RestController
@RequestMapping("/sys/paper")
public class PaperController extends AbstractController {
	@Autowired
	private PaperService paperService;
	
	/**
	 * 获取area信息
	 */
	@RequestMapping("/info")
	public R info(){
		return R.ok().put("user", getUser()).put("test", paperService.queryAllAreas());
	}
	
	/**
	 * 获取area信息
	 */
	@RequestMapping("/jdbc")
	public R jdbc(){
		return R.ok().put("user", getUser()).put("test", paperService.queryJDBC());
	}
	
}
